Skip to content

Add TriggerSource parameter to mark SDK PRs as ready for review#42654

Open
raych1 wants to merge 1 commit intomainfrom
users/raych1/mark-pr-ready
Open

Add TriggerSource parameter to mark SDK PRs as ready for review#42654
raych1 wants to merge 1 commit intomainfrom
users/raych1/mark-pr-ready

Conversation

@raych1
Copy link
Copy Markdown
Member

@raych1 raych1 commented Apr 24, 2026

When spec-gen-sdk pipeline is triggered by the release-plan-app, create the SDK pull request in 'ready for review' state instead of draft.

A new 'TriggerSource' parameter (default: 'unspecified') is added to differentiate callers.

Related: Azure/azure-sdk-tools#15209
Related: Azure/azure-sdk-tools#15294

Test Run:
Azure/azure-sdk-for-go#26675

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 24, 2026

Next Steps to Merge

⌛ Please wait. Next steps to merge this PR are being evaluated by automation. ⌛

Comment generated by summarize-checks workflow run.

@raych1 raych1 force-pushed the users/raych1/mark-pr-ready branch from 6d2a372 to d3386d8 Compare April 25, 2026 00:37
@raych1 raych1 marked this pull request as ready for review April 25, 2026 00:38
@raych1 raych1 force-pushed the users/raych1/mark-pr-ready branch from d3386d8 to 1e61306 Compare April 25, 2026 01:03
@raych1 raych1 requested a review from praveenkuttappan April 25, 2026 01:16
@raych1 raych1 self-assigned this Apr 25, 2026
@raych1
Copy link
Copy Markdown
Member Author

raych1 commented Apr 25, 2026

@praveenkuttappan can you review this PR?

When spec-gen-sdk pipeline is triggered by the release-plan-app,
create the SDK pull request in 'ready for review' state instead of
draft. A new 'TriggerSource' parameter (default: 'unspecified') is
added to differentiate callers.

Related: Azure/azure-sdk-tools#15209
Related: Azure/azure-sdk-tools#15294

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@raych1 raych1 force-pushed the users/raych1/mark-pr-ready branch from 1e61306 to d40b136 Compare April 27, 2026 16:38
-PRTitle "$(PrTitle)-generated-from-$(Build.DefinitionName)-$(Build.BuildId)"
-PRBody "$(GeneratedSDKInformation) $(ReleasePlanInfo)"
-OpenAsDraft $true
-OpenAsDraft $${{ ne(parameters.TriggerSource, 'release-plan-app') }}
Copy link
Copy Markdown
Member

@praveenkuttappan praveenkuttappan Apr 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be a separate param? Trigger source could be agent, or it could be GitHub copilot. We shouldn't use release plan app value for comparison. A user might directly use MCP tool to run SDK generation too.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer combining them into one input param if possible to simplify the pipeline. The name check could be changed to like containing -release.

Whatever entries calling the generation pipeline, no matter MCP tool or release plan app, should set the 'TriggerSource' with the name ending with -release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants